<section>
    <section class="vbox">
        <section class="scrollable padder">
            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                <li><a href="{:url('Home/index')}"><i class="fa fa-home"></i> 首页</a></li>
                <li class="active">账户操作</li>
            </ul>
            <div class="m-b-md">
                <h3 class="m-b-none">账户操作
                    <a href="{:url('User/account',array('page'=>$page,'search'=>$search))}"
                       class="btn btn-s-md btn-default">返&nbsp;&nbsp;回</a>
                </h3>
            </div>
            <section class="panel panel-default">
                <div class="row m-l-none m-r-none bg-light lter">
                    <form method="post" action="{:url('User/account_edit',array('page'=>$page,'search'=>$search))}" enctype="multipart/form-data">
                        <input type="text" class="form-control" id="id" name="id" value="{$res.id?$res.id:''}"
                               style="width:300px;display: none">
                        <div class="table-responsive">
                            <table class="table table-striped b-t b-light">
                                <tbody>
                                <tr>
                                    <th style="vertical-align: middle;">用户名：</th>
                                    <td>
                                        <input type="text" class="form-control" id="name" name="name"
                                               value="{$res.name?$res.name:''}">
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align: middle;">密码：</th>
                                    <td>
                                        <input type="text" class="form-control" id="password" name="password"
                                               value="{$res.password?$res.password:''}">
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align: middle;">权限等级：</th>
                                    <td>
                                        <select name="class" style="width:210px;padding: 5px 10px;border: 1px solid #d9d9d9;border-radius: 3px;">
                                            <option value="1" {$res.class?($res.class==1?'selected':''):''}>高级</option>
                                            <option value="2" {$res.class?($res.class==2?'selected':''):''}>低级</option>
                                        </select>
                                    </td>
                                </tr>
                                <!--<tr>-->
                                <!--<th style="vertical-align: middle;">状态：</th>-->
                                <!--<td>-->
                                <!--<select name="status" style="width:210px;padding: 5px 10px;border: 1px solid #d9d9d9;border-radius: 3px;">-->
                                <!--<option value="0" selected>隐藏</option>-->
                                <!--<option value="1" {$res.status?($res.status==1?'selected':''):''}>正常（取得id）</option>-->
                                <!--<option value="2" {$res.status?($res.status==2?'selected':''):''}>正常（取得昵称头像）</option>-->
                                <!--</select>-->
                                <!--</td>-->
                                <!--</tr>-->
                                <tr>
                                    <th></th>
                                    <td>
                                        <input type="submit" value="保存" class="btn btn-s-md btn-success">
                                        <a href="{:url('User/account_add',array('id'=>empty($res)?'':$res.id,'page'=>$page))}"
                                           class="btn btn-s-md btn-default">取消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </form>
                </div>
            </section>
        </section>
    </section>
</section>

<script src="__SITEURL__/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="__SITEURL__/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="__SITEURL__/kindeditor/plugins/code/prettify.js"
        type="text/javascript"></script>
<!-- <script type="text/javascript" src="http://wxactivity2.cdsb.mobi/Public/vote/hys99/js/jquery-2.1.1.min.js"></script> -->
<script>
</script>

